package vip.hamlin.dnspod.bean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

/**
 * Created by SunShao on 2016/6/1.
 * spring context 初始化后，读取context:property-placeholder标签或者PropertySourcesPlaceholderConfigurer，完成bean的实例化。
 * 并通过PropertySourcesPlaceholderConfigurer寻找合适的StringValueResolver，解析得到val值，注入给@Value注释的Field或Method。
 */
public class BaseBean {
    @Bean
    public static PropertySourcesPlaceholderConfigurer propertyConfigInDev() {
        return new PropertySourcesPlaceholderConfigurer();
    }
}
